# 操作系统的基础镜像
FROM centos:7.9.2009
# 作者/ 其他信息
MAINTAINER dw

RUN mkdir /usr/local/java

ADD ./agent.tar.gz /usr/local
ADD ./jdk-11.0.13_linux-x64_bin.tar.gz /usr/local/java

ENV JAVA_HOME=/usr/local/java/jdk-11.0.13
ENV	PATH=$JAVA_HOME/bin:$PATH
ENV	LC_ALL="zh_CN.UTF-8"

VOLUME /tmp

COPY *.jar /app.jar
# 端口映射
EXPOSE 8080
RUN bash -c 'touch /app.jar'
# 启动jar包
ENTRYPOINT ["java", "-jar", "app.jar"]